package snowflake

import (
	"time"

	"github.com/bwmarrin/snowflake"
)

var Snowflaker *snowflake.Node

func init() {
	var st time.Time
	st, err := time.Parse("2006-01-02", "2023-11-29")
	if err != nil {
		panic(err)
	}
	snowflake.Epoch = st.UnixNano() / 1000000
	Snowflaker, err = snowflake.NewNode(10)

	if err != nil {
		panic(err)
	}
}
